__autho__ = "pengfeifu"

'''
函数
'''


def func_demo1(param):
    print("参数是:", param)


# 默认参数param=China
def func_demo2(param="China"):
    print("参数2是：%s" % param)


def func_demo3(param1="County", param2="Province", param3="City"):
    print("国家%s,省份%s,市级%s" % (param1, param2, param3))


# 如果参数个数不确定，*代替
def func_demo4(*param_args):
    for arg in param_args:
        print(arg)


# 递归函数
def func_demo5(param):
    if param > 0:
        result = param * func_demo5(param - 1)
        print("%s的阶乘%s" % (param, result))
    else:
        result = 1
    return result


func_demo1("232323")
func_demo1(param="232323")

func_demo2()
func_demo2("HeNan")
func_demo2(param="NanYang")

# 如果指定参数指，顺序无关紧要
func_demo3(param3="南阳", param2="河南", param1="中国")

func_demo4("hello", "world", "hello", "python")

func_demo5(10)
